import java.io.File;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        File f =new File("d://bb123.txt");
        if(f.exists()) {
            System.out.println("exists");
        }else {
            try {
                f.createNewFile();
                f.mkdir();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
